<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;
use App\Http\Services\RedPacketRainServices;

class CommandRedPacketRainCheck extends Command
{
    protected $signature = 'CommandRedPacketRainCheck';

    protected $description = '每分钟检查是否有即将开始的红包雨并发消息';

    public function __construct()
    {
        parent::__construct();
    }

    public function handle()
    {
        $redPacketRainService = new RedPacketRainServices();
        //每分钟检查是否有即将开始的红包雨并发消息
        $redPacketRainService->redPacketRainCheck();
        //每分钟检查是否活动结束发系统信息
        $redPacketRainService->redPacketRainCheckSendMsg();

        return true;   
    }

}